package cn.tedu.passort.dao.persist.repository;


import cn.tedu.passort.pojo.entity.User;
import cn.tedu.passort.pojo.param.AddJobApplicantParam;
import cn.tedu.passort.pojo.param.AddRecruiterParam;
import cn.tedu.passort.pojo.vo.UserLoginInfoVO;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;


public interface IUserRepository {
    int count(String phone);
    void reg (String phone);
    void reg (String phone,Long roleId);
    UserLoginInfoVO getUser(String phone);
    int updateLoginNum(String phone,Integer loginNum);
    Long getIdByPhone(String phone);
    List<String> getPermission(String phone);

    @Transactional
    void add(AddJobApplicantParam addJobApplicantParam);

    @Transactional
    void add(AddRecruiterParam addRecruiterParam);
}
